const studentDao = require('../dao/studentDao');

module.exports.find = async function(searchObj,page){
    return await studentDao.find(searchObj,page);
}

module.exports.findById = async function(id){
    return await studentDao.findById(id);
}

module.exports.insert = async function(student){
    return await studentDao.insert(student);
}

module.exports.remove = async function(id){
    return await studentDao.remove(id);
}

module.exports.update = async function(id,student){
    return await studentDao.update(id,student);
}
